//package com.black.cat.seed.config.job;
//
//
//import com.xxl.job.core.executor.impl.XxlJobSpringExecutor;
//import lombok.RequiredArgsConstructor;
//import lombok.extern.slf4j.Slf4j;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.boot.context.properties.EnableConfigurationProperties;
//import org.springframework.context.annotation.Bean;
//import org.springframework.context.annotation.Configuration;
//
///**
// * <p>
// * xxl-job 自动装配
// * </p>
// * @author blackcat
// * @since 2020-07-22
// */
//@Slf4j
//@Configuration
//@EnableConfigurationProperties(XxlJobProps.class)
//@RequiredArgsConstructor(onConstructor_ = @Autowired)
//public class XxlJobConfig {
//    private final XxlJobProps xxlJobProps;
//
//    @Bean()
//    public XxlJobSpringExecutor xxlJobExecutor() {
//        log.info(">>>>>>>>>>> xxl-job config init.");
//        XxlJobSpringExecutor xxlJobSpringExecutor = new XxlJobSpringExecutor();
//        xxlJobSpringExecutor.setAdminAddresses(xxlJobProps.getAdmin().getAddress());
//        xxlJobSpringExecutor.setAccessToken(xxlJobProps.getAccessToken());
//        xxlJobSpringExecutor.setAppname(xxlJobProps.getExecutor().getAppName());
//        xxlJobSpringExecutor.setIp(xxlJobProps.getExecutor().getIp());
//        xxlJobSpringExecutor.setPort(xxlJobProps.getExecutor().getPort());
//        xxlJobSpringExecutor.setLogPath(xxlJobProps.getExecutor().getLogPath());
//        xxlJobSpringExecutor.setLogRetentionDays(xxlJobProps.getExecutor().getLogRetentionDays());
//
//        return xxlJobSpringExecutor;
//    }
//
//}
